<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>引入javascript</title>

</head>

<body>
    <div>
        <h1>HELLO</h1>
    </div>

    <script type="text/javascript">
        // alert 弹出框
        alert("hello javascript");
        alert('hello javascript......');

        // console.log 打印日志
        console.log("hello world!");
    </script>

    <!-- 外部js文件 -->
    <script type="text/javascript" src="js/myjavascript.js"></script>

</body>

</html>